<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
	<title>破损处理管理</title>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
	<meta name="decorator" content="ani"/>
	<%@ include file="/webpage/include/bootstraptable.jsp"%>
	<%@include file="/webpage/include/treeview.jsp" %>
	<%@include file="damagedList.js" %>
</head>
<body>
	<div class="wrapper wrapper-content">
	<div class="panel panel-primary">
	<div class="panel-heading">
		<h3 class="panel-title">破损处理列表</h3>
	</div>
	<div class="panel-body">
		<sys:message content="${message}"/>
	
	<!-- 搜索 -->

		<div class="accordion-inner">
			<form:form id="searchForm" modelAttribute="damaged" class="form form-horizontal well clearfix">

				<div class="col-xs-6 col-sm-3 col-md-2">
					<label class="label-item single-overflow pull-left" title="装运单号：">类型：</label>
						<select id="type" class="form-control ">
							<option value="">请选择</option>
							<c:forEach items="${fns:getDictList('pstype')}" var="i">
								<option value="${i.value}" >${i.value}</option>
							</c:forEach>
						</select>
								</div>
				<div class="col-xs-6 col-sm-3 col-md-2">
					<label class="label-item single-overflow pull-left" title="装运单号：">结案状态：</label>
					<select id="ja" class="form-control ">
						<option value="">请选择</option>
							<option value="未结案" >未结案</option>
						<option value="部分结案" >部分结案</option>
						<option value="已结案" >已结案</option>

					</select>
				</div>
				<div class="col-xs-6 col-sm-3 col-md-2">
					<label class="label-item single-overflow pull-left" title="装运单号：">装运单号：</label>
					<input id="zyd" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>
				<div class="col-xs-6 col-sm-3 col-md-2">
					<label class="label-item single-overflow pull-left" title="装运单号：">关联单号：</label>
					<input id="gld" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>
				<div class="col-xs-6 col-sm-3 col-md-2">
					<div class="form-group">
						<label class="label-item single-overflow pull-left" title="起始时间">起始时间:</label>
						<div class="col-xs-12">
							<div class='input-group date' id='minDate' >
								<input type='text'  id="min" class="form-control"  />
								<span class="input-group-addon">
			                       <span class="glyphicon glyphicon-calendar"></span>
			                   </span>
							</div>
						</div>
					</div>
				</div>
				<div class="col-xs-6 col-sm-3 col-md-2">
					<div class="form-group">
						<label class="label-item single-overflow pull-left" title="截止时间">截止时间:</label>
						<div class="col-xs-12">
							<div class='input-group date' id='maxx' >
								<input type='text'  id="max" class="form-control"  />
								<span class="input-group-addon">
			                       <span class="glyphicon glyphicon-calendar"></span>
			                   </span>
							</div>
						</div>
					</div>
				</div>
				<shiro:hasPermission name="ap:expenditure:pro">
					<div class="col-xs-6 col-sm-3 col-md-2">
						<label class="label-item single-overflow pull-left" title="：">项目：</label>
						<select name="pro" class=" form-control">
							<option value="">请选择</option>
							<option value="武汉润滑油仓储项目">武汉润滑油仓储项目</option>
							<option value="北京润滑油运输项目">北京润滑油运输项目</option>
							<option value="天津润滑油运输项目">天津润滑油运输项目</option>
							<option value="西安润滑油仓储配送项目">西安润滑油仓储配送项目</option>
							<option value="郑州润滑油运输项目">郑州润滑油运输项目</option>
							<option value="重庆润滑油仓储配送项目">重庆润滑油仓储配送项目	</option>

							<option value="石家庄润滑油仓储配送项目">石家庄润滑油仓储配送项目</option>
						</select>
					</div></shiro:hasPermission>
		  <div class="col-xs-12 col-sm-6 col-md-4">
			<div style="margin-top:26px">
			  <a  id="search" onclick="cx()" class="btn btn-primary btn-rounded  btn-bordered btn-sm"><i class="fa fa-search"></i> 查询</a>
			  <a  id="reset" onclick="dc()" class="btn btn-primary btn-rounded  btn-bordered btn-sm" ><i class="fa fa-refresh"></i> 导出</a>
			 </div>
	    </div>	
	</form:form>
	</div>

	
	<!-- 工具栏 -->
<table class="table text-nowrap">
	<tr>
		<th>应收赔款</th>
		<th id="zys"></th>
		<th>应收未收赔款</th>
		<th id="ws"></th>
		<th>应付赔款</th>
		<th id="zyf"></th>
		<th>应付未付赔款</th>
		<th id="wf"></th>
		<th>应收赔款-应付赔款</th>
		<th id="zce"></th>
	</tr>
</table>
		<input type="hidden" id="ids"/><div style="overflow: scroll;   width:100%;height: 500px;">
	<!-- 表格 -->
	<table id="damagedTable" class="table  text-nowrap"  data-toolbar="#toolbar">
		<thead>
		<tr>
			<th>项目</th>
			<th>发生日期</th>
			<th>类型</th>
			<th>装运单号</th>
			<th>关联单号</th>
			<th>收付款对象</th>
			<th>赔付说明</th>
			<th>总金额</th>
			<th>收付金额</th>
			<th>剩余金额</th>
			<th>残值去向</th>
			<th>是否结案</th>
		</tr>
		</thead>
		<tbody id="detil"></tbody>
	</table>
	</div>
    <!-- context menu -->

	</div>
	</div>
	</div>
	<div class="modal fade" id="tb" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					<h4 class="modal-title">收付款</h4>
				</div>
				<div class="modal-body">
					<table class="table table-bordered">
						<tr>
							<td width="35%">装运单号</td>
							<td><input id="zydh" readonly="readonly" class="form-control "/></td>
						</tr>
						<tr>
							<td width="35%">关联单号</td>
							<td><input id="gldh" readonly="readonly" class="form-control "/></td>
						</tr>

						<tr>
							<td width="35%">收付款对象</td>
							<td><input id="sfkdx" readonly="readonly" class="form-control "/></td>
						</tr>
						<tr>
							<td width="35%">金额</td>
							<td><input id="je"  class="form-control number"/></td>

						</tr>

					</table>

				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					<button type="button" class="btn btn-primary" onclick="qrsfk()">确定</button>
				</div>
			</div><!-- /.modal-content -->
		</div><!-- /.modal -->
	</div>

</body>
</html>